function ProgressBar(vli){
   HBox.apply(this,arguments);
   this.vl = vli;
   this.htmlX.addClass("ProgressBar progress progress-striped active");
   this.htmlX.append('<div class="barra progress-bar"  role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%"><span class="sr-only">0% Completo</span></div>'); 
}
ProgressBar.prototype.setProgress = function(vlp){    	
	this.vl = vlp;
	this.htmlX.find(".barra").stop().animate({"width":(vlp)+"%"},"faster");
	this.htmlX.find(".barra").attr({"aria-valuenow":vlp});
};

ProgressBar.prototype.setValue = function(vlp){    	
	this.setProgress(vlp);
};
ProgressBar.prototype.getValue = function(){    	
	return this.vl;
};

ProgressBar.prototype.setBarColor = function(bgc){  
	this.htmlX.find(".barra").css({"backgroundColor":bgc});  	
};

ProgressBar.prototype.setToolTip = function(tooltip){  
	this.htmlX.attr("alt",tooltip);
};
ProgressBar.prototype.setLabel=function(nlabel){
	this.htmlX.attr("alt",nlabel);
};
